package com.yunxin.core.domain.model.channel;

/**
 * @author zero°
 * @since 2023-12-14
 */
public interface ChannelPromotionApiCustomerConfigRepository {

    /**
     * 保存
     * @param channelPromotionApiCustomerConfig channelPromotionApiCustomerConfig
     * @return boolean
     */
    boolean saveChannelPromotionApiCustomerConfig(ChannelPromotionApiCustomerConfig channelPromotionApiCustomerConfig);

    /**
     * 更新
     * @param channelPromotionApiCustomerConfig channelPromotionApiCustomerConfig
     * @return boolean
     */
    boolean updateChannelPromotionApiCustomerConfig(ChannelPromotionApiCustomerConfig channelPromotionApiCustomerConfig);

    /**
     * 根据渠道推广编码获取
     * @param promotionCode promotionCode
     * @return ChannelPromotionApiCustomerConfig
     */
    ChannelPromotionApiCustomerConfig getChannelPromotionApiCustomerConfigByPromotionCode(String promotionCode);
}
